package com.example.fufu.task;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

@Configuration
@EnableScheduling
public class SaticScheduleTask {
    @Autowired
    private com.example.fufu.cotroller.push push;

    @Scheduled(cron = "0 30 7 * * ?")
    private void configureTasks() {
        push.send();
    }
}